//调用接口配置文件
import { request } from 'config/request'


//获取区域数据
export async function getRegion(params) {
	return request({
		url: 'admin/product/present/getRegion',
		method: 'POST',
		data: params 
	});
};
//新增
export async function createApi(params) {
	return request({
		url: 'jfsc/admin/merchandise/create',
		method: 'POST',
		data: params 
	});
};
//编辑
export async function updateApi(params) {
	return request({
		url: 'jfsc/admin/merchandise/update',
		method: 'POST',
		data: params 
	});
};

//删除
export async function deletedApi(params) {
	return request({
		url: `jfsc/admin/merchandise/delete/${params}`,
		method: 'GET',
	});
};

